import http from '@/utils/http.js'

const page = (name) => http.get(`/document/index/page/${name}`)

const list = (type) => http.get(`/document/index/list/${type}`)

const detail = (id) => http.get(`/document/index/${id}`)

export default { page, list, detail }
